<?php
// .-----------------------------------------------------------------------------------
// | WE TRY THE BEST WAY 杭州博也网络科技有限公司
// |-----------------------------------------------------------------------------------
// | Author: 贝贝 <hebiduhebi@163.com>
// | Copyright (c) 2013-2016, http://www.itboye.com. All Rights Reserved.
// |-----------------------------------------------------------------------------------


namespace app\shop\model;

use think\model\View;

class OrdersInfoView extends View{
	
	public $viewFields = [
    "Orders" => array('_table'=>'itboye_orders','_type'=>'LEFT','pay_code','pay_type','tax_amount','goods_amount','id','order_code','price','post_price','discount_money','pay_balance','createtime','updatetime','uid','status','storeid','pay_status','order_status','note','cs_status','red_envelop_id','coupon_id'),
    "OrderInfo" => array("_on"=>"Orders.order_code=OrderInfo.order_code","_table"=>"itboye_orders_contactinfo",'_type'=>'LEFT','wxno','detailinfo','contactname','country','city','province','detailinfo','area','mobile','id_card','postal_code'),
//        "UcenterMember"=>array('_on'=>'Orders.uid=UcenterMember.id','_table'=>'__UCENTER_MEMBER__','_type'=>'LEFT','username','email'),
    "OrderRefund" => array('_on'=>'Orders.order_code=OrderRefund.order_code','_table'=>'itboye_order_refund','_type'=>'LEFT','create_time'=>'refund_time','refund_type','refund_money','note','goods_get','reason','valid_status','reply_msg','reply_time'),
    "CommonMember" => array('_on'=>'Orders.uid=CommonMember.uid','_table'=>'common_member','_type'=>'LEFT','nickname'=>'username'),
    'Store' => array('_on'=>'Orders.storeid=Store.id','_table'=>'itboye_store','_type'=>'LEFT','name'=>'store_name','desc'=> 'store_desc','banner'=>'store_banner','logo'=>'store_logo','service_phone'),
    'RedEnvelope' => array('_on'=>'Orders.red_envelop_id=RedEnvelope.id','_table'=>'itboye_red_envelope','_type'=>'LEFT','money'=>'red_envelop_money'),
    'Coupon' => array('_on'=>'Orders.coupon_id=Coupon.id','_table'=>'itboye_coupon_his','_type'=>'LEFT','money'=>'coupon_money'),
    ];
}
